// We use the fact that $\gcd(i, i+1)=1$.
#include<bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
  int tc; cin>>tc;
  while(tc--) {
    int n; cin>>n;
    int x=1e9+7, pos=-1;
    for(int i=0; i<n; ++i) {
      int a; cin>>a;
      if(a<x) {
        x=a, pos=i;
      }
    }
    cout<<n-1<<'\n';
    for(int i=0; i<n; ++i) {
      if(i==pos)continue;
      cout<<pos+1<<' '<<i+1<<' '<<x<<' '<<x+abs(pos-i)<<'\n';
    }
  }
}
